package com.edu.exam.enums.grading.export;
import com.edu.exam.enums.core.BaseEnum;

public enum OperationResult implements BaseEnum {
    SUCCESS("SUCCESS", "成功"),
    FAILURE("FAILURE", "失败"),
    PARTIAL_SUCCESS("PARTIAL_SUCCESS", "部分成功"),
    CANCELLED("CANCELLED", "已取消"),
    ERROR("ERROR", "错误");

    private final String code;
    private final String description;

    OperationResult(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() { return code; }
    @Override
    public String getDescription() { return description; }
}
